package routers

import (
	"hello/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/bookList", &controllers.BookController{}, "get:GetBookList")
	beego.Router("/bookById", &controllers.BookController{}, "get:GetBook")
	beego.Router("/bookTypeList", &controllers.BookController{}, "get:GetBookTypeList")
	beego.Router("/publishingList", &controllers.BookController{}, "get:GetPublishingList")
	beego.Router("/updateBook", &controllers.BookController{}, "post:UpdateBook")
	beego.Router("/saveBook", &controllers.BookController{}, "post:SaveBook")
	beego.Router("/deleteBook", &controllers.BookController{}, "post:DeleteBook")

	beego.Router("/borrowList", &controllers.BorrowController{}, "get:GetBorrowList")
	beego.Router("/updateBorrow", &controllers.BorrowController{}, "post:UpdateBorrow")
	beego.Router("/saveBorrow", &controllers.BorrowController{}, "post:SaveBorrow")
	beego.Router("/deleteBorrow", &controllers.BorrowController{}, "post:DeleteBorrow")
	beego.Router("/oneKeyReturn", &controllers.BorrowController{}, "post:OneKeyReturn")
	beego.Router("/usableBookList", &controllers.BorrowController{}, "get:GetUsableBookList")
}
